package com.example.demo1.service;

import com.example.demo1.mapper.UserMapper;
import com.example.demo1.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

public interface UserService {



    public User findByName(String name);

    void register(String name, String password);

    void update(User user);


//    void updaeAvatar(String avatarUrl);

    void updatePwd(String newPwd);

    //更新头像
    String upload(MultipartFile file, Integer id);
}
